/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "盘点单实体",TableName = "InventoryCount")]
    public partial class InventoryCount:BaseEntity
    {
        /// <summary>
       ///盘点单主键 
       /// </summary>
       [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
       [Key]
       [Display(Name ="盘点单主键 ")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int InventoryCountId { get; set; }

       /// <summary>
       ///盘点单号
       /// </summary>
       [Display(Name ="盘点单号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string CountCode { get; set; }

       /// <summary>
       ///盘点类型
       /// </summary>
       [Display(Name ="盘点类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string CountType { get; set; }

       /// <summary>
       ///盘点开始时间
       /// </summary>
       [Display(Name ="盘点开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? StartTime { get; set; }

       /// <summary>
       ///盘点结束时间
       /// </summary>
       [Display(Name ="盘点结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? EndTime { get; set; }

       /// <summary>
       ///关联仓库表主键
       /// </summary>
       [Display(Name ="关联仓库表主键")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? WarehouseId { get; set; }

       /// <summary>
       ///关联制单人用户表主键
       /// </summary>
       [Display(Name ="关联制单人用户表主键")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? CreatorId { get; set; }

       /// <summary>
       ///关联经办人用户表主键
       /// </summary>
       [Display(Name ="关联经办人用户表主键")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? HandlerId { get; set; }

       /// <summary>
       ///所在部门
       /// </summary>
       [Display(Name ="所在部门")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string Department { get; set; }

       /// <summary>
       ///制单时间
       /// </summary>
       [Display(Name ="制单时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///盘点状态
       /// </summary>
       [Display(Name ="盘点状态")]
       [Column(TypeName="enum")]
       [Editable(true)]
       public string CountStatus { get; set; }

       /// <summary>
       ///出库状态
       /// </summary>
       [Display(Name ="出库状态")]
       [MaxLength(4)]
       [Column(TypeName="nvarchar(4)")]
       [Editable(true)]
       public string OutStatus { get; set; }

       /// <summary>
       ///入库状态
       /// </summary>
       [Display(Name ="入库状态")]
       [MaxLength(4)]
       [Column(TypeName="nvarchar(4)")]
       [Editable(true)]
       public string InStatus { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Remark { get; set; }

       
    }
}